package demo2;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-09-27
 * Time: 18:41
 */
public class Test2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        try {
            int a = scanner.nextInt();
            int ret = 10 / a;
            System.out.println(ret);
        }catch (ArithmeticException e){
            System.out.println("ArithmeticException");
        }finally {
            System.out.println("finally执行了");
            scanner.close();
        }
    }
}
